package com.atguigu.spzx.model.entity.base;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class BaseEntity {//implements Serializable {
    @Schema(hidden = true)
    private Long id;
    //JsonFormat： 局部配置时间日期格式
    //jackson格式化时间日期时的注解
    @Schema(hidden = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    private Date createTime;
    @Schema(hidden = true)
    private Date updateTime;
    //boolean: 基本类型两个值 true和false  自动生成的get set方法是 isXxx
    //Boolean: 包装类有三个值 true false  null
    @Schema(hidden = true)
    private Integer isDeleted;

}
